import request from "@/utils/request";

export function upload(data) {
  return request({
    url: "image/user/update",
    method: "post",
    data: data,
  });
}

export function register(data) {
  return request({
    url: "/login/register",
    method: "post",
    data: data,
  });
}

export function registerPassed(data) {
  return request({
    url: "/login/register/passed",
    method: "post",
    data: data,
  });
}

export function ToLogin(data) {
  return request({
    url: "/login/check",
    method: "post",
    data: data,
  });
}
export function FindInfo(username) {
  return request({
    url: "/login/info/" + username,
    method: "get",
  });
}

export function finByName(data) {
  return request({
    url: "/login/register/passed/select",
    method: "post",
    data,
  });
}
export function finByNameAll(data) {
  return request({
    url: "/login/register/passed/all",
    method: "post",
    data,
  });
}
export function updatePW(data) {
  return request({
    url: "/login/update/pw",
    method: "post",
    data: data,
  });
}
export function updateMsg(data) {
  return request({
    url: "/login/update/msg",
    method: "post",
    data: data,
  });
}
